package client;
import javax.sound.sampled.LineUnavailableException;

/**
 * Simple driver code to test Oscillator
 * @author Marcin Bujar
 */
public class OscillatorDriver {
	
	public static final int C 	= 262;
	public static final int CS 	= 277;
	public static final int D 	= 294;
	public static final int DS 	= 311;
	public static final int E 	= 330;
	public static final int F 	= 349;
	public static final int FS 	= 370;
	public static final int G 	= 392;
	public static final int GS 	= 415;
	public static final int A 	= 440;
	public static final int AS 	= 466;
	public static final int B 	= 494;

	public static void main(String[] args) throws LineUnavailableException{
		//seven nation army chorus :)
		Oscillator.playNote(E, 4, 900, 1.0);
		Oscillator.playNote(E, 4, 300, 1.0);
		Oscillator.playNote(G, 4, 300, 1.0);
		Oscillator.playNote(E, 4, 300, 1.0);
		Oscillator.playNote(D, 4, 300, 1.0);
		Oscillator.playNote(C, 4, 1200, 1.0);
		Oscillator.playNote(B, 3, 900, 1.0);
		
		System.out.println("Done");
		Oscillator.playSound(400.5, 1000, 1.0);
	}

}
